<link rel="stylesheet" type="text/css" href="<?php echo PLGN_DIR . basename(dirname(__FILE__)); ?>/css/style.css" />
<style type="text/css">
.bg { text-align: center; padding-top: 100px; }
.pane { margin: 0 auto; width: 400px; text-align: left; }
.err {
  font-family: Trebuchet MS;
  background: #ff6767;
  border: 1px solid #ac1010;
  padding: 5px 20px;
  color: #fff;
  margin: 0 auto;
  text-align: center;
}
</style>

<div class="bg">
  <div class="pane">
    <div class="main">
      <form class="form-2" action="<?php echo Utils::get_requrl($app_data, '&amp;') . 'login'; ?>" method="post">
        <input type="hidden" name="url" value="<?php echo URL . HOME_DIR . $app_data->sys->php_name . ".php?i=$app_data->param_id"; ?>" />
        <input type="hidden" name="rt_url" value="<?php echo (($app_data->param_url) ? urlencode($app_data->param_url) : ''); ?>" />
        <h1><span class="log-in">Log in</span></h1>
        <?php if (isset($_SESSION['lgnerr'])) { ?>
        <p class="clearfix"><p class="err"><?php echo $_SESSION['lgnerr']; ?></p></p>
        <?php } ?>
        <p class="float">
          <label for="user"><i class="fa fa-user"></i>Username</label>
          <input id="user" type="text" name="user" placeholder="Username or email" />
        </p>
        <p class="float">
          <label for="pass"><i class="fa fa-lock"></i>Password</label>
          <input id="pass" type="password" name="pass" placeholder="Password" class="showpassword" />
        </p>
        <p class="clearfix"> 
          <a style="visibility: collapse;" href="#" class="log-twitter">Log in with Twitter</a>
          <input id="loginbtn" type="submit" name="submit" value="Log in" />
        </p>
      </form>
    </div>
  </div>
</div>

